package com.friendfeed.api;

import org.json.JSONException;
import org.json.JSONObject;

public class Service {
    private String id;
    private String name;
    private String iconUrl;
    private String profileUrl;

    public Service() {
    }

    public Service(JSONObject jsonObject) throws JSONException {
        id = jsonObject.getString("id");
        name = jsonObject.getString("name");
        iconUrl = jsonObject.getString("iconUrl");
        profileUrl = jsonObject.getString("profileUrl");
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public String getProfileUrl() {
        return profileUrl;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public void setProfileUrl(String profileUrl) {
        this.profileUrl = profileUrl;
    }

    public String toString() {
        return "Service{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", iconUrl='" + iconUrl + '\'' +
                ", profileUrl='" + profileUrl + '\'' +
                '}';
    }
}
